//package com.jiezhuo.config;
//
//import cn.usr.javasdk.data.realtime.UsrCloud;
//import com.jiezhuo.entity.YourengConfig;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class YouRenConfig {
//    @Autowired
//    YourengConfig yourengConfig;
//    @Bean
//    public void getInfo() throws Exception {
//        System.out.println(yourengConfig.getAppKey());
//        System.out.println(yourengConfig.getAppSecret());
//        UsrCloud instance = UsrCloud.getInstance(yourengConfig.appKey, yourengConfig.appSecret);
//        instance.setOnlineOfflineHandler((onlineOfflineDto) -> {
//            System.out.println("online offline,deviceId:" + onlineOfflineDto.getDeviceId() + ",status:" + onlineOfflineDto.getStatus());
//        });
//        instance.subscribeAllStatus();
//    }
//}
